package org.csu.mypetstore.service;

import org.csu.mypetstore.common.CommonResponse;
import org.csu.mypetstore.domain.*;

import java.awt.color.ICC_Profile;
import java.util.List;

public interface CatalogService {

    // category
    public CommonResponse<Category> getCategoryById(String categoryId);
    public CommonResponse<List<Category>> getCategoryList();

    // product
    public CommonResponse<Product> getProductById(String productId);
    public CommonResponse<List<Product>> getProductList();
    public CommonResponse<List<Product>> getProductListByCategoryId(String categoryId);

    // item
    public CommonResponse<Item> getItemById(String itemId);
    public CommonResponse<List<Item>> getItemList();
    public CommonResponse<List<Item>> getItemListByProductId(String productId);

    // search
    public CommonResponse<List<Category>> searchCategory(String keyword);
    public CommonResponse<List<Product>> searchProduct(String keyword);
    public CommonResponse<List<Item>> searchItem(String keyword);

    boolean checkItemQuantity(List<Cart> cartList);
}
